package com.dianping.cat.home.graph.entity;

import com.dianping.cat.home.graph.BaseEntity;
import com.dianping.cat.home.graph.IVisitor;









public class Segment
  extends BaseEntity<Segment>
{
  private String m_id;
  private String m_category;
  private String m_measure;
  private String m_endPoint;
  private String m_tags;
  private String m_type;
  
  public Segment() {}
  
/*  26 */   public Segment(String id) { this.m_id = id; }




  public void accept(IVisitor visitor) { visitor.visitSegment(this); }


  
  public boolean equals(Object obj) {
    if (obj instanceof Segment) {
/*  37 */       Segment _o = (Segment)obj;

/*  39 */       if (!equals(getId(), _o.getId())) {
/*  40 */         return false;
      }
      
/*  43 */       return true;
    }
    
/*  46 */     return false;
  }

  
/*  50 */   public String getCategory() { return this.m_category; }



/*  54 */   public String getEndPoint() { return this.m_endPoint; }



/*  58 */   public String getId() { return this.m_id; }



/*  62 */   public String getMeasure() { return this.m_measure; }



/*  66 */   public String getTags() { return this.m_tags; }



/*  70 */   public String getType() { return this.m_type; }


  
  public int hashCode() {
/*  75 */     int hash = 0;

/*  77 */     return hash * 31 + ((this.m_id == null) ? 0 : this.m_id.hashCode());
  }



  
  public void mergeAttributes(Segment other) {
/*  84 */     assertAttributeEquals(other, "segment", "id", this.m_id, other.getId());

/*  86 */     if (other.getCategory() != null) {
/*  87 */       this.m_category = other.getCategory();
    }
    
/*  90 */     if (other.getMeasure() != null) {
/*  91 */       this.m_measure = other.getMeasure();
    }
    
/*  94 */     if (other.getEndPoint() != null) {
      this.m_endPoint = other.getEndPoint();
    }
    
/*  98 */     if (other.getTags() != null) {
/*  99 */       this.m_tags = other.getTags();
    }
    
/* 102 */     if (other.getType() != null) {
/* 103 */       this.m_type = other.getType();
    }
  }
  
  public Segment setCategory(String category) {
/* 108 */     this.m_category = category;
/* 109 */     return this;
  }
  
  public Segment setEndPoint(String endPoint) {
/* 113 */     this.m_endPoint = endPoint;
/* 114 */     return this;
  }
  
  public Segment setId(String id) {
/* 118 */     this.m_id = id;
/* 119 */     return this;
  }
  
  public Segment setMeasure(String measure) {
/* 123 */     this.m_measure = measure;
/* 124 */     return this;
  }
  
  public Segment setTags(String tags) {
/* 128 */     this.m_tags = tags;
/* 129 */     return this;
  }
  
  public Segment setType(String type) {
/* 133 */     this.m_type = type;
/* 134 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/graph/entity/Segment.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */